package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysRoleCategory;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysRoleCategoryProxy extends AbstractProxyEntity<EaiSysRoleCategoryProxy, EaiSysRoleCategory> {

    private static final Class<EaiSysRoleCategory> entityClass = EaiSysRoleCategory.class;

    public static final EaiSysRoleCategoryProxy TABLE = createTable().createEmpty();

    public static EaiSysRoleCategoryProxy createTable() {
        return new EaiSysRoleCategoryProxy();
    }

    public EaiSysRoleCategoryProxy() {
    }

    /**
     * {@link EaiSysRoleCategory#getCategoryId}
     */
    public SQLStringTypeColumn<EaiSysRoleCategoryProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * {@link EaiSysRoleCategory#getAppId}
     */
    public SQLStringTypeColumn<EaiSysRoleCategoryProxy> appId() {
        return getStringTypeColumn("appId");
    }

    /**
     * {@link EaiSysRoleCategory#getCategoryName}
     */
    public SQLStringTypeColumn<EaiSysRoleCategoryProxy> categoryName() {
        return getStringTypeColumn("categoryName");
    }

    /**
     * {@link EaiSysRoleCategory#getParentCategoryId}
     */
    public SQLStringTypeColumn<EaiSysRoleCategoryProxy> parentCategoryId() {
        return getStringTypeColumn("parentCategoryId");
    }

    /**
     * 创建日期
     * {@link EaiSysRoleCategory#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysRoleCategoryProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    /**
     * {@link EaiSysRoleCategory#getCreateUserId}
     */
    public SQLStringTypeColumn<EaiSysRoleCategoryProxy> createUserId() {
        return getStringTypeColumn("createUserId");
    }

    /**
     * 最后更新的日期
     * {@link EaiSysRoleCategory#getUpdateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysRoleCategoryProxy> updateDate() {
        return getLocalDateTimeTypeColumn("updateDate");
    }

    /**
     * {@link EaiSysRoleCategory#getUpdateUserId}
     */
    public SQLStringTypeColumn<EaiSysRoleCategoryProxy> updateUserId() {
        return getStringTypeColumn("updateUserId");
    }

    @Override
    public Class<EaiSysRoleCategory> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysRoleCategoryProxyFetcher FETCHER = new EaiSysRoleCategoryProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysRoleCategoryProxyFetcher extends AbstractFetcher<EaiSysRoleCategoryProxy, EaiSysRoleCategory, EaiSysRoleCategoryProxyFetcher> {

        public EaiSysRoleCategoryProxyFetcher(EaiSysRoleCategoryProxy proxy, EaiSysRoleCategoryProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysRoleCategory#getCategoryId}
         */
        public EaiSysRoleCategoryProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * {@link EaiSysRoleCategory#getAppId}
         */
        public EaiSysRoleCategoryProxyFetcher appId() {
            return add(getProxy().appId());
        }

        /**
         * {@link EaiSysRoleCategory#getCategoryName}
         */
        public EaiSysRoleCategoryProxyFetcher categoryName() {
            return add(getProxy().categoryName());
        }

        /**
         * {@link EaiSysRoleCategory#getParentCategoryId}
         */
        public EaiSysRoleCategoryProxyFetcher parentCategoryId() {
            return add(getProxy().parentCategoryId());
        }

        /**
         * 创建日期
         * {@link EaiSysRoleCategory#getCreateDate}
         */
        public EaiSysRoleCategoryProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        /**
         * {@link EaiSysRoleCategory#getCreateUserId}
         */
        public EaiSysRoleCategoryProxyFetcher createUserId() {
            return add(getProxy().createUserId());
        }

        /**
         * 最后更新的日期
         * {@link EaiSysRoleCategory#getUpdateDate}
         */
        public EaiSysRoleCategoryProxyFetcher updateDate() {
            return add(getProxy().updateDate());
        }

        /**
         * {@link EaiSysRoleCategory#getUpdateUserId}
         */
        public EaiSysRoleCategoryProxyFetcher updateUserId() {
            return add(getProxy().updateUserId());
        }

        @Override
        protected EaiSysRoleCategoryProxyFetcher createFetcher(EaiSysRoleCategoryProxy cp, AbstractFetcher<EaiSysRoleCategoryProxy, EaiSysRoleCategory, EaiSysRoleCategoryProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysRoleCategoryProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
